import request from '@/router/axios';


// 获取课程设置列表
export const getList = (current, size, params) => {
  return request({
    url: '/api/ManageCourseSet/GetCourseSetList',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}


// 获取课程设置详情
export const getDetail = (id) => {
  return request({
    url: '/api/ManageCourseSet/GetCourseSetInfo',
    method: 'get',
    params: {
      id
    }
  })
}

// 删除
export const remove = (params) => {
  return request({
    url: '/api/ManageCourseSet/DelCourseSet',
    method: 'post',
    data:params
  })
}

// 添加
export const add = (row) => {
  return request({
    url: '/api/ManageCourseSet/AddOrEditCourseSet',
    method: 'post',
    data: row
  })
}

// 修改
export const update = (row) => {
  return request({
    url: '/api/ManageCourseSet/AddOrEditCourseSet',
    method: 'post',
    data: row
  })
}

